import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'login_page.dart';

class SplashPage extends StatefulWidget {
  @override
  _SplashPageState createState() => _SplashPageState();
}

class _SplashPageState extends State<SplashPage> {

  @override
  void initState() {

    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("splash"),
      ),
      body: Center(
        child: RaisedButton(
          onPressed: () {
            _go2page1();
          },
          child: Text("go2login"),
        ),
      ),
    );
  }

  void _go2page1(){
    Navigator.pushReplacement(context, CupertinoPageRoute(builder: (context) => LoginPage()));
  }
}
